/********************************************************************************
 * Copyright (c) 2025 TypeFox and others.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 *
 * This Source Code may also be made available under the following Secondary
 * Licenses when the conditions for such availability set forth in the Eclipse
 * Public License v. 2.0 are satisfied: GNU General Public License, version 2
 * with the GNU Classpath Exception which is available at
 * https://www.gnu.org/software/classpath/license.html.
 *
 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
 ********************************************************************************/

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
}

.container {
    margin: 20px auto;
    max-width: 1200px;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
    padding-right: 15px;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    padding-left: 15px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

h2 {
    color: #1976d2;
    margin-top: 0;
    font-size: 18px;
    font-weight: 500;
}

h3 {
    color: #1976d2;
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.sprotty {
    height: 600px;
    border-radius: 4px;
    background: #fafafa;
    margin: 20px 0;
}

/* SVG element sizing */
svg.sprotty-graph {
    width: 100%;
    height: 600px;
    border: 1px solid #bbb;
    border-radius: 4px;
    display: block;
    box-sizing: border-box;
}

.sprotty svg {
    width: 100%;
    height: 100%;
}

.explanation {
    margin: 20px 0;
    padding: 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
}

.explanation ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.explanation li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.explanation code {
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
}

.controls {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.controls h3 {
    margin: 0;
    margin-right: 10px;
}

.layout-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.layout-btn:hover {
    background: #0056b3;
}

.layout-btn.active {
    background: #28a745;
}

.layout-btn:active {
    background: #004085;
}

.help {
    text-align: right;
    font-size: 12px;
    padding-top: 5px;
}

.help a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.help a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #6c757d;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.copyright a {
    color: #007bff;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        max-width: none;
    }

    .col-md-10,
    .col-md-12,
    .col-md-2 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .help {
        text-align: left;
        margin-top: 10px;
    }

    .sprotty {
        height: 400px;
    }

    svg.sprotty-graph {
        height: 400px;
    }

    h1 {
        font-size: 24px;
    }

    .controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .controls h3 {
        margin-bottom: 10px;
    }
}